<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>flex布局</title>
		<style type="text/css">
			.button-container {
				width: 1000px;
				height: 200px;
				border: 1px black solid;
				display: flex;
				/*  */
				flex-flow: row wrap;
				justify-content: center;
				align-items: center;
			}
			.button-container div {
				width: 200px;
				height: 80px;
				border: 1px blue solid;
				border-radius: 5px;
			}
		</style>
	</head>
	<body>
		<div class="button-container">
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
		</div>
	</body>
</html>